package com.bj58.groupbuy.action.service;

import java.util.List;

import com.bj58.groupbuy.action.model.Role;
import com.bj58.groupbuy.action.model.RolePriviledge;

public interface RolePriviledgeService{

	/**通过roleid查询权限信息
	 * @param roleid
	 * @return
	 * @throws Exception
	 */
	public List<RolePriviledge> getPriviledgeByRoleid (long roleid) throws Exception;
	
	public boolean delPriviledgeByRoleid (long roleid) throws Exception;
	
	/**新增角色及权限信息
	 * @param roleid
	 * @return
	 * @throws Exception
	 */
	public boolean saveRoleFunctions(String functions,Role r,String opers)throws Exception;
	
	/**更新角色及权限信息
	 * @param roleid
	 * @return
	 * @throws Exception
	 */
	public boolean updateRoleFunctions(Role r,String functions ,String opers)throws Exception;
}
